Configuring JMS and ActiveMQ for Reliable Messaging |
|
Before you begin this task:
Ensure that you have done the following:
- Load Cordys JMSTransport package.
- Install ActiveMQ.
- Install Atomikos
- After installing, set the system classpath accordingly depending upon the operating system.
- For Windows: Add the following jars to the system variable CLASSPATH.
- For Linux: Extend the CLASSPATH with the jar files at the location <homedirCordys>\bin\wcpenv.sh.
- BOP 4.x :
<Process Platform Home Directory>/ext/jms.jar
<Process Platform Home Directory>/components/jmstransport/jmstransport.jar - ActiveMQ :
<ActiveMQ Home Directory>/activemq-all-5.6.0.jar
<ActiveMQ Home Directory>/lib/slf4j-api-1.6.4.jar - Atomikos and additional :
<AtomikosHome>/atomikos-util.jar
<AtomikosHome>/transactions.jar
<AtomikosHome>/transactions-api.jar
<AtomikosHome>/transactions-jta.jar
<AtomikosHome>/slf4j-nop.jar*}}
- BOP 4.x :
- Include the
slf4j-nop.jar
in the service container classpath. You can download it from http://www.slf4j.org/download.html.
- Set global configuration.
- On CUSP > My Applications, click
( System Resource Manager). The System Resource Manager window appears, displaying the list of all the available Service Containers.
- Right-click a Service Container and select Manage Connection Points. The Connection Points dialog box appears, listing the existing connection points.
- Click
. The Connection Point dialog box appears.
- Provide the required information in the Connection Point dialog box as described below:
Field
Action
Name
Specify a name for the connection endpoint. For example, you can provide the name as BPMconnectiion.
Type
Select the type as JMS.
Use distributed transaction manager
Enable the Use distributed transaction manager check box.
Queue
Provide a name for the queue in the Queue Name field. For example: system.BPM.
- Click Save.
The connection point is created.
Note: No additional and or manual steps are needed within ActiveMQ. When a JMS endpoint is created, queues are automatically created within ActiveMQ. Click here for a sample screenshot.